<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Register TagPrefix="uc1" TagName="SurveyListControl" Src="SurveyListControl.ascx" %>
<%@ Control Language="c#" AutoEventWireup="True" CodeBehind="SurveyOptionControl.ascx.cs"
    Inherits="Votations.NSurvey.WebAdmin.UserControls.SurveyOptionControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<asp:Label ID="MessageLabel" runat="server" ForeColor="Green" Visible="False"></asp:Label>
<table class="innerText" id="Table1">
    <tr>
        <td colspan="2">
            <table id="Table2">
                <tr>
                    <td width="99%">
                        <font class="titleFont">
                            <asp:Literal ID="SurveyInformationTitle" runat="server" Text="Survey information"
                                EnableViewState="False"></asp:Literal></font>
                    </td>
                    <td align="right">
                        <uc1:SurveyListControl ID="SurveyList" runat="server"></uc1:SurveyListControl>
                    </td>
                </tr>
            </table>
            <img src="/admin/Survey/images/linebreak.gif">
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;&nbsp;
        </td>
        <td>
            <table class="smallText" width="600" id="Table3">
                <tbody>
                    <tr>
                        <td width="120">
                            <strong>
                                <asp:Literal ID="SurveyTitleLabel" runat="server" EnableViewState="False">Title 
            :</asp:Literal></strong>
                        </td>
                        <td width="480">
                            <asp:TextBox ID="TitleTextBox" runat="server"></asp:TextBox>
                        </td>
                    </tr>
        </td>
    </tr>
    <asp:PlaceHolder ID="EditUi" runat="server">
        <tr>
            <td nowrap width="100">
                <strong>
                    <asp:Literal ID="OpeningDateLabel" runat="server" EnableViewState="False">Opening 
            date :</asp:Literal></strong>
            </td>
            <td width="480">
                <asp:TextBox ID="OpeningDateTextBox" runat="server" Columns="6"></asp:TextBox>&nbsp;<asp:Literal
                    ID="DateForExampleInfo" runat="server" EnableViewState="False">eg :</asp:Literal><asp:Label
                        ID="DateFormatLabel" runat="server"></asp:Label>
            </td>
        </tr>
        </TD></TR>
        <tr>
            <td width="270">
                <strong>
                    <asp:Literal ID="CloseDateLabel" runat="server" EnableViewState="False">Close 
            date :</asp:Literal></strong>
            </td>
            <td width="480">
                <asp:TextBox ID="CloseDateTextbox" runat="server" Columns="6"></asp:TextBox>
            </td>
        </tr>
        </TD></TR>
        <tr>
            <td width="270">
                <strong>
                    <asp:Literal ID="ProgressDisplayLabel" runat="server" EnableViewState="False">Progress 
            display :</asp:Literal></strong>
            </td>
            <td>
                <asp:DropDownList ID="ProgressDisplayDropDownList" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="250">
                <strong>
                    <asp:Literal ID="DisableQuestionNumbering" runat="server" EnableViewState="False">Disable question numbering
            :</asp:Literal></strong>
            </td>
            <td>
                <asp:CheckBox ID="QuestionNumberingCheckbox" runat="server"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="250">
                <strong>
                    <asp:Literal ID="ActiveSurveyLabel" runat="server" EnableViewState="False">Active 
            :</asp:Literal></strong>
            </td>
            <td>
                <asp:CheckBox ID="ActiveCheckBox" runat="server"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="270">
                <strong>
                    <asp:Literal ID="ArchivedLabel" runat="server" EnableViewState="False" Visible="False"></asp:Literal></strong>
            </td>
            <td>
                <asp:CheckBox ID="ArchiveCheckBox" runat="server" Visible="False"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="250">
                <strong>
                    <asp:Literal ID="ScoredLabel" runat="server" EnableViewState="False">Scored : 
            :</asp:Literal></strong>
            </td>
            <td>
                <asp:CheckBox ID="ScoredCheckbox" runat="server"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="270">
                <strong>
                    <asp:Literal ID="EnableNavigationLabel" runat="server" EnableViewState="False">Enable 
            navigation :</asp:Literal></strong>
            </td>
            <td>
                <asp:CheckBox ID="EnableNavigationCheckbox" runat="server"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="290">
                <strong>
                    <asp:Literal ID="EnableResumeLabel" runat="server" EnableViewState="False">resume 
            of progress :</asp:Literal></strong>
            </td>
            <td>
                <asp:DropDownList ID="ResumeModeDropdownlist" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
</table>
</TD></TR></TBODY></TABLE><br>
<table class="innerText" id="Table4">
    <tr>
        <td colspan="2">
            <font class="titleFont">
                <asp:Literal ID="NotificationSettingsTitle" runat="server" EnableViewState="False"
                    Text="Notification settings"></asp:Literal></font><br>
            <img src="/admin/Survey/images/linebreak.gif">
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;&nbsp;
        </td>
        <td>
            <table class="innerText" id="Table5">
                <tbody>
                    <tr>
                        <td width="140">
                            <strong>
                                <asp:Literal ID="EntryNotificationLabel" runat="server" EnableViewState="False">Entry 
            notification :</asp:Literal></strong>
                        </td>
                        <td>
                            <asp:DropDownList ID="EntryNotificationDropdownlist" runat="server" AutoPostBack="true"
                                OnSelectedIndexChanged="EntryNotificationDropdownlist_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <asp:PlaceHolder ID="NotificationPlaceHolder" runat="server">
                        <tr>
                            <td nowrap width="140">
                                <strong>
                                    <asp:Literal ID="FromEmailNotificationLabel" runat="server" EnableViewState="False"
                                        Text="">Email from :</asp:Literal></strong>
                            </td>
                            <td width="480">
                                <asp:TextBox ID="EmailFromTextbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
    </tr>
    <tr>
        <td nowrap width="140">
            <strong>
                <asp:Literal ID="ToEmailNotificationLabel" runat="server" EnableViewState="False"
                    Text="">Email to:</asp:Literal></strong>
        </td>
        <td width="480">
            <asp:TextBox ID="EmailToTextBox" runat="server"></asp:TextBox>
        </td>
    </tr>
    </TR>
    <tr>
        <td nowrap width="140">
            <strong>
                <asp:Literal ID="NotificationSubjectLabel" runat="server" EnableViewState="False"
                    Text="">Email subject :</asp:Literal></strong>
        </td>
        <td width="480">
            <asp:TextBox ID="EmailSubjectTextbox" runat="server"></asp:TextBox>
        </td>
    </tr>
    </asp:placeholder></asp:placeholder>
</table>
</TD></TR></TBODY></TABLE><br>
<asp:Button ID="CreateSurveyButton" runat="server" Text="Create survey!" OnClick="CreateSurveyButton_Click">
</asp:Button><asp:Button ID="ApplyChangesButton" runat="server" Text="Apply changes"
    OnClick="ApplyChangesButton_Click"></asp:Button><asp:Button ID="DeleteButton" runat="server"
        Text="Delete" OnClick="DeleteButton_Click"></asp:Button><asp:Button ID="CloneButton"
            runat="server" Text="Clone" OnClick="CloneButton_Click"></asp:Button><asp:Button
                ID="ExportSurveyButton" runat="server" Text="Export XML" OnClick="ExportSurveyButton_Click">
            </asp:Button>
<br>
<br>
<asp:PlaceHolder runat="server" ID="SurveyImportPlaceHolder">
    <table class="innerText">
        <tr>
            <td colspan="2">
                <font class="titleFont">
                    <asp:Literal ID="ImportSurveyTitle" runat="server" EnableViewState="False" Text="Import survey from XML"></asp:Literal></font><br>
                <img src="/admin/Survey/images/linebreak.gif">
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;
            </td>
            <td>
                <table class="innerText" id="Table7">
                    <tr>
                        <td width="140">
                            <input id="ImportFile" type="file" name="ImportFile" runat="server">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br>
    <asp:Button ID="ImportXMLButton" runat="server" Text="Import XML" OnClick="ImportXMLButton_Click">
    </asp:Button></asp:PlaceHolder>
